pushd ${BUILDDIR}
echo "[binaries]" > meson-cross.txt
echo "c = '${CROSS_TARGET}-gcc'" >> meson-cross.txt
echo "cpp = '${CROSS_TARGET}-g++'" >> meson-cross.txt
echo "ar = '${CROSS_TARGET}-ar'" >> meson-cross.txt
echo "strip = '${CROSS_TARGET}-strip'" >> meson-cross.txt
echo "objcopy = '${CROSS_TARGET}-objcopy'" >> meson-cross.txt
echo "pkgconfig = '${CROSS_TARGET}-pkg-config'" >> meson-cross.txt
echo "cups-config = '${CROSS_TARGET}-cups-config'" >> meson-cross.txt
echo "llvm-config = '${CROSS_TARGET}-llvm-config'" >> meson-cross.txt
echo "vala = '${CROSS_TARGET}-valac'" >> meson-cross.txt
echo "exe_wrapper = 'qemu-loongarch64'" >> meson-cross.txt
echo "[properties]" >> meson-cross.txt
echo "sys_root = '${SYSDIR}/sysroot'" >> meson-cross.txt
echo "pkg_config_libdir = '${SYSDIR}/sysroot/usr/lib32/pkgconfig:${SYSDIR}/sysroot/usr/share/pkgconfig'" >> meson-cross.txt
cat >> meson-cross.txt << "EOF"
[host_machine]
system = 'linux'
cpu_family = 'loongarch32'
cpu = 'loongarch32'
endian = 'little'
EOF
popd
